﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.codeplex.eatoutadvocate.Engine
{
    public class Recommendation //: IComparable
    {
        public static List<string> Recommend(List<Engine.EatOut> eatOutData)
        {
            List<string> restaurants = new List<string>();
            IComparer<Engine.EatOut> rank = new RankDescending();
            eatOutData.Sort(rank);
            for (int i = 0; i < 3; i++)
            {
                restaurants.Add(eatOutData[i].Restaurant); 
            }
            return restaurants;
        }
    }
}
